<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@page import="dyyx.dto.*"%>
<%@page import="dyyx.util.*"%>
<%@page import="java.util.*"%>



<%

WebResult webResult = new WebResult();
ZkViewWebUtil.run(request, webResult);
List<NodeData> list = webResult.list;
if(list==null){
	list = new ArrayList<NodeData>();
}

%>

<%@include file="/comm.jsp"%>



<hr>


<%=new Date() %> <br>

<hr>
op <%=webResult.op %> <br>

<%=webResult.msg %>

<hr>

<% if(ZkViewWebUtil.isListView(webResult.op)){ %>

<table>
<tr class='title'>
<td>path</td>
<td>numChildren</td>
<td>createZxid</td>
<td>modifyZxid</td>
<td>createTime</td>
<td>modifyTime</td>
<td>dataVersion</td>
<td>childVersion</td>
<td>aclVersion</td>
<td>ephemeralOwner</td>
<td>dataLength</td>
<td>pzxid</td>
<td>data</td>
</tr>

<%for(NodeData item:list){ %>

<tr>
<td>

<%if(item.stat.getNumChildren()>0){ %>
<a href='result.jsp?op=child&path=<%=item.path%>'><%=CommUtil.pathFormat(item.path) %></a>
<%} else{%>
<%=CommUtil.pathFormat(item.path) %>
<%} %>

</td>
<td><%=item.stat.getNumChildren() %></td>

<td><%=item.stat.getCzxid() %></td>
<td><%=item.stat.getMzxid() %></td>
<td><%=CommUtil.getDateString(new Date(item.stat.getCtime())) %></td>
<td><%=CommUtil.getDateString(new Date(item.stat.getMtime())) %></td>
<td><%=item.stat.getVersion()%></td>

<td><%=item.stat.getCversion() %></td>
<td><%=item.stat.getAversion() %></td>
<td><%=item.stat.getEphemeralOwner() %></td>
<td><%=item.stat.getDataLength() %></td>
<td><%=item.stat.getPzxid() %></td>


<td><%=item.dataStr %></td>
</tr>


<%} %>


</table>


<%} %>
<hr>
<br><br><br>
